package com.wangshidai.service;

import com.wangshidai.entity.SysPermission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wangshidai.reply.rolereply.QueryPermissionTreeReply;
import com.wangshidai.util.BusinessException;

import java.util.List;

/**
 *
 */
public interface SysPermissionService extends IService<SysPermission> {
    List<QueryPermissionTreeReply> queryPermissionTree(long roleId);




    List<SysPermission> querySysPerssionList();
    List<SysPermission> queryPreviousMenu();
    SysPermission queryById(Integer id);

    Boolean savePermission(SysPermission sysPermission);

    void deletePermission(Integer id);

    Boolean updatePermission(SysPermission sysPermission);
}
